/*
---
script: dialog.js
description: ---
license: MIT-style license
authors:
- Christian Merz
requires:
- core:1.3.2/Element.Event
provides: [dialogCME]
...
*/
window.addEvent('domready', function(){

     var dialogCme = new DialogCME({
		'title':'Detail Komoditi',
		'content':
                    "<table>\n\
                       <tr>\n\
							<td align='left'>\n\
							<img src='images/komoditi-beras.jpg' height='300px' width='200px' align='top'/></td>\n\
						    <td align='left'>\n\
							<p>Kategori</p>\n\
							<p>Komoditi</p>\n\
							<p>Jenis Komoditi</p>\n\
							<p>Lokasi</p>\n\
							<p>Kualitas</p>\n\
							<p>Kuantitas</p>\n\
							<p>Satuan</p>\n\
							<p>Tanggal Tersedia</p>\n\
							<p>Harga Dasar</p>\n\
							<p>Harga Jual</p>\n\
							<p>Kemasan</p>\n\
							<p>Deskripsi (ukuran, bentuk komoditi)</p></td>\n\
						</tr>\n\
						</table>",
		'cancel':{
			'exists':true,
			'value':'Kembali',
			'fn': function(e){
				this.hide()
			}
		}
	});
    
    $('sellerCommodityDetail').addEvent('click', function(e){
        e = new Event(e).stop();
        dialogCme.show();
    }
.bind(this));
});